#include <iostream>
using std::cout ; 
using std::endl ; 

#include <string>
using std::string ; 

#include "OptionType.hpp"

OptionType::OptionType(string* variable,string flag, string shortDescription,string defaultValue,string longDescription,string group,int order ) 
{
	 mFlag = flag ;  
	 mShortDescription = shortDescription ; 
   mDefaultValue = defaultValue ; 
	 mLongDescription = longDescription ; 
	 mGroup = group ; 
	 mOrder = order ; 
	 mValue = variable ; 
}



void OptionType::setOption(string value) 
{
	 *mValue = value ; 
}

string OptionType::getValueAsString() 
{
	if(mValue==NULL){
		return "NULL" ; 
	}
	return *mValue ;
}


string OptionType::getDefaultAsString() 
{
	return mDefaultValue ;
}


// -*- C++ -*-

// (C) 2006 by Nathan Dunn, <ndunn@mac.com>


